import 'package:flutter/material.dart';

class HeaderNavWidget extends StatelessWidget {
  final String title;
  final Function onTap;
  HeaderNavWidget(this.title, {this.onTap});

  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: onTap,
      child: Container(
        padding: EdgeInsets.only(
          left: 20,
          right: 20,
        ),
        child: Text(
          "$title",
          style: TextStyle(
            decoration: TextDecoration.none,
            fontSize: 18,
            color: Colors.white,
            fontWeight: FontWeight.w500,
          ),
        ),
      ),
    );
  }
}
